package com.rjwh.dingdong.client.constant;

public class LocalConstant {


    public static final int SELECT_REQUEST_MOOD_PICS = 5;


    /**
     * ---------SP存储区域---------
     */

    public static final String SP_AUTO_LOGIN = "isAutoLogin_3";
    public static final String SP_LOGIN_NAME = "loginName";
    public static final String SP_LOGIN_PASSWORD = "loginPassword";

    // 用户userid
    public static final String SP_USERID = "userid";
    //token
    public static final String SP_USER_TOKEN = "token";
    // 宝宝id
    public static final String SP_BABYID = "babyid";
    // 宝宝昵称
    public static final String SP_BABYNAME = "babyname";
    //宝宝头像
    public static final String SP_BABYAVATAR = "babyAvatar";
    // 宝宝性别
    public static final String SP_BABYSEX = "sex";
    // 宝宝生日
    public static final String SP_BABYBIRTHDAY = "birthday";
    //宝宝年龄
    public static final String SP_BABYAGE = "babyage";

    // 用户名称
    public static final String SP_USERNAME = "userName";
    // 用户头像
    public static final String SP_USERIMAGE = "userImage";
    // 用户称谓
    public static final String SP_USERCHENGWEI = "userChengwei";
    // 用户电话
    public static final String SP_USERPHONE = "userPhone";
    // 资料是否完善标识 0：否 1：是
    public static final String SP_USERCOMPLETE = "complete";
    //用户等级
    public static final String SP_USERLEVEL = "userlevel";


    // 定位城市
    public static final String SP_LOC_CITY = "loc_city";
    // 定位省份
    public static final String SP_LOC_PROVINCE = "loc_province";
    // 定位地址
    public static final String SP_LOC_ADDRESS = "loc_address";
    // 定位la
    public static final String SP_LOC_LATITUDE = "loc_latitude";
    // 定位lo
    public static final String SP_LOC_LONGITUDE = "loc_longitude";

    //社区是否新消息
    public static final String SP_COMMUNITY_MSG_UNREAD = "unread";

    //OTG用户安装模式,初始化
    public static final String SP_OTG_INIT = "otg_init1";

    //积分链接
    public static final String SP_SCOREPAGEURL = "scorepage";

    //已登录标识
    public static final String SP_IS_LOGINED = "isLogined";

    //是否设置有密码
    public static final String SP_USER_HASPWD = "haspwd";

    //个推clientid
    public static final String SP_CLIENTID = "clientid";

    //是否加载过引导页
    public static final String SP_IS_GUIDE_SHOWN = "isfirstguide";

    //设备唯一标识
    public static final String SP_UUID = "uuid";

    //绘本详情是否显示步骤提示
    public static final String SP_DRAWBOOK_STEP_FORCED_SHOW = "StepForcedShow";

    //音频播放相关
    public static final String SP_GAME_RECORD_LASTTIME = "lasttime";
    public static final String SP_GAME_RECORD_FINISHCOUNT = "finishcount";
    public static final String SP_GAME_RECORD_DURATION = "duration";
    public static final String SP_GAME_RECORD_ACCURACY = "accuracy";
    public static final String SP_PLAYER_PLAY_MODE = "playModel";

    //推送通知id
    public static final String SP_NOTIFICATIONID = "notificationid";

    /**
     * ---------Web地址相关---------
     */

    public final static String NAMESPACE = "http://tempuri.org/";

    // 基础服务地址
    private static final String BASE_URL = "http://api.whtdlx.com";
//  private static final String BASE_URL = "http://192.168.5.142";// 本地测试地址
//  private static final String BASE_URL = "http://120.132.55.27";// 外网测试地址
//  private static final String BASE_URL = "http://192.168.11.29";// 本地测试地址

    //端口号
    private static final String POST = ":8080";
//    private static final String POST = ":6080";// 外网测试地址

    // 基础文件地址
    public static final String BASE_FILE_URL = "http://resource.whtdlx.com/";
//  public static final String BASE_FILE_URL = "http://192.168.0.98:6161/";

    //     服务地址
    public final static String SERVER_URL = BASE_URL + POST + "/web/service.asmx";
//  public final static String SERVER_URL = BASE_URL +POST+ "/web/service.asmx";// 本地测试地址
//  public final static String SERVER_URL = BASE_URL + POST+"/web/service.asmx";// 外网测试地址

    // 图片地址
    public final static String IMG_URL_HEAD = BASE_FILE_URL;

    // 上传附件(发帖)
    public static final String SEND_UPLOAD_ATTACH = BASE_FILE_URL + "web/UploadAttach.ashx";


    // 检测更新
    public static final String VERSION_UPDATE = BASE_URL + POST + "/web/versioncheck.ashx";


    //新版 app版本检测更新
    public static final String VERSION_CHECK = BASE_URL + POST + "/web/VersionCheck.ashx";

    //帮助中心
    public static final String HELP_CENTER = "http://resource.whtdlx.com/upload/usagehelp/dingdongbaby/parent.html";

    //绘本步骤
    public static final String DRAW_BOOK_STEP = "http://resource.whtdlx.com/upload/picturebook/navresource/index.html?platform=android";


    // 发送 用户头像
    public static final String SEND_UPLOAD_USERIMAGE = BASE_FILE_URL + "web/avatar.ashx";


    /**
     * ---------APP一些配置常量---------
     */

    public static final String CONST_APP_NAME = "dingdongbaby";

    public static final String CONST_APP_DB_DATABASE = "db_ddbb_1";

    public static final int CONST_APP_DB_DATABASE_VERSION = 1;

    public static final String CONST_APP_DIR_NAME = "dingdongbaby";


    /**
     * ------RX 操作变量---------
     */
    //刷新下载列表
    public static final String RX__POST_DOWNLOAD_REFRESH_LIST = "refreshDwonloadList";
    //下载状态改变
    public static final String RX__POST_DOWNLOAD_STATE_CHANGE = "notifyDownloadStateChanged";
    //进度
    public static final String RX__POST_DOWNLOAD_STATE_PROGRES = "notifyDownloadProgressed";
    //解压
    public static final String RX__POST_DOWNLOAD_STATE_UNZIP = "notifyUnZip";
    //登录后刷新界面
    public static final String RX__POST_LOGIN_UPDATE_UI = "notifyLoginUpdateUI";
    //webview登录后请求js
    public static final String RX__POST_WEB_FETCHINFO = "authorize_fetchinfo";

    //社区板块---国学
    public static final String MODULARTYPE_GUOXUE = "3";

    //社区板块---数学
    public static final String MODULARTYPE_MATH = "2";
    //社区板块---育儿
    public static final String MODULARTYPE_YUER = "1";


    //绘本跳转到程序主页
//    public static final String RX__POST_DRAWBOOK_BACKHOME= "notifyDrawBookBackHome";
    //绘本 重新加载数据
//    public static final String RX__POST_DRAWBOOK_LOADDATA= "notifyDrawBookLoadData";


    /**
     * --------程序从http启动的sechem标识符--------
     */

    //app启动bundle
    public static final String APP_EXTRA_BUNDLE = "launchBundle";

    //帖子详情SCHEME
    public static final String SCHEME_FORWORD_TYPE_COMMUNITY_DETAIL = "detail";

    public static final String URL_BASE = "?userid=%s&babyid=%s&platform=android&version=%s&udid=%s&token=%s";

    //产品介绍链接
    public static final String PRODUCT_INTRODUCTION = "http://resource.whtdlx.com/upload/product/index.html";

    //ActionUrl相关
    public static final String ACTIONURL_TIANDILIXIN = "tiandilixin";
    public static final String ACTIONURL_TYPE = "type";
    public static final String ACTIONURL_ACTIVITY = "activity";
    public static final String ACTIONURL_URL = "url";
    public static final String ACTIONURL_PICTURE = "picture";
    public static final String ACTIONURL_SUBTYPE = "subtype";
    public static final String ACTIONURL_LIBRARY = "library";
    public static final String ACTIONURL_CATEGORY = "category";
    public static final String ACTIONURL_UNIVERSAL = "universal";
    public static final String ACTIONURL_BOOKID = "bookid";
    public static final String ACTIONURL_DETAIL = "detail";
    public static final String ACTIONURL_MATH = "math";
    public static final String ACTIONURL_SINOLOGY = "sinology";
    public static final String ACTIONURL_CLASSIC = "classic";
    public static final String ACTIONURL_STORY = "story";
    public static final String ACTIONURL_ANCHORLIST = "anchorlist";
    public static final String ACTIONURL_OWNER = "owner";
    public static final String ACTIONURL_CREATER = "creater";
    public static final String ACTIONURL_ALBUM = "album";
    public static final String ACTIONURL_ANCHORID = "anchorid";
    public static final String ACTIONURL_ALBUMID = "albumid";
    public static final String ACTIONURL_ANCHOR = "anchor";
    public static final String ACTIONURL_AUTH = "auth";
    public static final String ACTIONURL_COMMUNITY = "community";
    public static final String ACTIONURL_ZONE = "zone";
    public static final String ACTIONURL_REPLY = "reply";
    public static final String ACTIONURL_TOPICID = "topicid";
    public static final String ACTIONURL_FILEPATH = "filepath";
    public static final String ACTIONURL_IMG = "img";
    public static final String ACTIONURL_ALBUMLIST = "albumlist";
    public static final String ACTIONURL_TOP = "top";
    public static final String ACTIONURL_NEWEST = "newest";
    public static final String ACTIONURL_MUSIC = "music";
    public static final String ACTIONURL_MULTIPLE = "multiple";
    public static final String ACTIONURL_USERSCORE = "userscore";
    public static final String ACTIONURL_DOWNLOAD = "download";
    public static final String ACTIONURL_ABOUTAPP = "aboutapp";
    public static final String ACTIONURL_SHARE = "share";
    public static final String ACTIONURL_TITLE = "title";
    public static final String ACTIONURL_CONTENT = "content";
    public static final String ACTIONURL_IMAGE = "image";
    public static final String ACTIONURL_COLLECTION = "collection";

    public static final String ACTIONURL_HOMEWORK = "homework";
    public static final String ACTIONURL_COCOS = "cocos";
    public static final String ACTIONURL_LESSONID = "lessonid";
    public static final String ACTIONURL_NEWS = "news";
    public static final String ACTIONURL_BILLBOARD = "billboard";
    public static final String ACTIONURL_DURATION = "duration";

    public static final String SP_APP_STARTUP_BADGE = "badge";
    public static final String SP_APP_STARTUP_URL = "url";
    public static final String SP_APP_STARTUP_ACTIONURL = "actionurl";
    public static final String SP_MAINPAGE_DAILOG_SHOW = "mainpage_dailog_show";

    public static final String ACTIONURL_EMALL = "emall";
}
